<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script>
	
	localStorage.setItem('name', '小花');
	localStorage.setItem('age', '18');
	localStorage.setItem('sex', '男');
	
	console.log(localStorage.getItem('name'));
	
	setTimeout(() => {
		localStorage.removeItem('name');
	}, 5000);
	
	setTimeout(() => {
		localStorage.clear();
	}, 8000);
	
	
	
</script>